home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / borland / svgabg52.zip / NOTES64K.SVG < prev    next >
Text File  |  1993-09-11  |  3KB  |  89 lines

  1. SuperVGA 65536 BGI driver 
  2. Version 1.5
  3. August 28, 1993
  4.  
  5. Revisions:
  6.     1.1 - May 21, 1993
  7.     1.0 - April 10, 1993
  8.  
  9. This is the newest version of my SuperVGA 65536 BGI driver.  All functions
  10. have been implemented, but there may still be bugs.
  11.  
  12. Note:  Palette functions, and the mouse cursor will not work with this driver.
  13.  
  14.   Using the HiColor driver:
  15.  
  16.     Implementing the 65536 color driver involved several hacks, as
  17.     the BGI interface only supports 8-bit color values, but the driver
  18.     needed support for 16-bit color values.  The procedures that needed
  19.     to be changed were those that accepted color values, (SetColor,
  20.     SetFillStyle, SetFillPattern, PutPixel and Floodfill)  and those 
  21.     that return color values (GetColor and GetPixel).
  22.     As the HiColor modes do not support palettes, I decided to use
  23.     the SetRgbPalette call to set colors, as it accepts values for the 
  24.     R,G and B components of the color.
  25.  
  26.     The format of a pixel in the HiColor modes is:
  27.         -Byte 1- -Byte 0-
  28.         RRRRRGGG GGGBBBBB
  29.  
  30.     Several new functions are defined to make the color selection easier.
  31.     In addition, the macro RGB(rv,gv,bv) has been defined.  It packs
  32.     the R, G and B values into the format described above and returns the
  33.     combined color.
  34.  
  35.     * RealDrawColor(); - Sets the current drawing color.
  36.       Usage:
  37.         setcolor(RealDrawColor(RGB(rval,gval,bval)); - HiColor modes
  38.         setcolor(RealDrawColor(cval)); - (suggested for any other driver)
  39.  
  40.     * RealFillColor(); - Sets the current fill color.
  41.       Usage:
  42.         setfillstyle(fillstyle,RealFillColor(RGB(rval,gval,bval)));
  43.         setfillstyle(fillstyle,RealFillColor(cval));
  44.         setfillpattern(fillpat,RealFillColor(RGB(rval,gval,bval)));
  45.         setfillpattern(fillpat,RealFillColor(cval));
  46.  
  47.     * RealColor(); - For putpixel, sets the color of the pixel
  48.                - For floodfill, sets the color of the boundary
  49.         putpixel(x,y,RealColor(RGB(rval,gval,bval)));
  50.         putpixel(x,y,RealColor(cval));
  51.         floodfill(x,y,RealColor(RGB(rval,gval,bval)));
  52.         floodfill(x,y,RealColor(cval));
  53.  
  54.     * GetPixel normally only returns an 8-bit value.  However, the
  55.       value returned from the BGI driver is a 16-bit value in DX (the 
  56.       BGI kernel loads the value into AX and clears the upper 8 bits),
  57.       so to read the value of a pixel:
  58.  
  59.       In Pascal:
  60.         Color := getpixel(x,y);
  61.         inline($89/$56/<Color);  (* Loads 16-bit color value *)
  62.  
  63.       In C:
  64.         Color = getpixel(x,y);
  65.         Color = _DX;
  66.       
  67.     * Paging information:
  68.  
  69.       Mode        Paging?        # of pages (with 1024k)
  70.       320x200    yes        8
  71.       640x350    yes        2
  72.       640x400    yes        2
  73.       640x480    no        1
  74.       800x600    no        1
  75.  
  76.     * Works with: ATI, Cirrus, Everex, NCR, Oak-077, Primus 2000,
  77.       Paradise WD90c3x and VESA [v1.2+]
  78.  
  79.     o Fixed text clipping at right and bottom edges (1.1)
  80.  
  81.     o Various speed optimizations (line & solid bar) (1.1)
  82.  
  83.     o Added compile-time support for 8x8, 8x14, or 8x16 bitmap fonts (1.1)
  84.  
  85.     o Drivers now have compile-time support for BGI version 3.0.
  86.       Supports protected mode with Borland Pascal 7.0 (1.5)
  87.  
  88.     o Added 1024x768x64k and 1280x1024x64k modes. (1.5)
  89.